$(function(){
	YuXi.InfoQuery.init({	
		url:"getAlreadyDoInfoFlow.do",
		query:{
				flowId:3,
				currentPage:1
			},					
		success:function(data){					
				YuXi.Render.InformationSeach(data.list,2,"复核-已提交");//调用信息查询的页面渲染模块
			},
			getQueryParm:function(){
						var query={};
						query={
							flowId:3,
							currentPage:1
						}
						YuXi.InfoQuery.queryData=YuXi.ALLSearch.base(query);
					},
				error:function(){},
				/* selector:{
					nextPage:$("#nextPage"),
					prevPage:$("#prevPage"),
					firstPage:$("#headPage"),
					lastPage:$("#endPage"),
					totalPage:$("#totalPage")
					此项为默认项
				}	 */
		});	

  //跳转到详情界面
	$("#tablebody").parent().on("click", ".detail", function() {
		  var id= $(this).attr("data-id");
			var menuId=$("#menu-container").attr("menu-id");
			window.location.href = '../information/subDetailInfo.jsp?menuId='+menuId+'&detailId=' + id;
	  })
 

//向后台请求已提交的信息数据
function requestRefer()
{	
	var url="getAlreadyDoInfoFlow.do";
	var flowId={flowId:3}
	YuXi.util.get(url,flowId,function(data){
		object=data.list;
		page=data.currentPage;
		totalPage=data.totalPage;	
		$("#totalPage").html(page+"/"+totalPage);
		addInformation(object);
	
	},function(){});
}


})
